import request from '@/utils/request'

// 查询配送员列表
export function listLogisticsassignment(query) {
  return request({
    url: '/logisticsassignment/logisticsassignment/list',
    method: 'get',
    params: query
  })
}

// 查询配送员详细
export function getLogisticsassignment(assignmentId) {
  return request({
    url: '/logisticsassignment/logisticsassignment/' + assignmentId,
    method: 'get'
  })
}

// 新增配送员
export function addLogisticsassignment(data) {
  return request({
    url: '/logisticsassignment/logisticsassignment',
    method: 'post',
    data: data
  })
}

// 修改配送员
export function updateLogisticsassignment(data) {
  return request({
    url: '/logisticsassignment/logisticsassignment',
    method: 'put',
    data: data
  })
}

// 删除配送员
export function delLogisticsassignment(assignmentId) {
  return request({
    url: '/logisticsassignment/logisticsassignment/' + assignmentId,
    method: 'delete'
  })
}
